home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 97 / CD-ROM 97 / CD-ROM 97.iso / internet / ghostzilla / ghsetup.exe / chrome / comm.jar / content / editor / TextEditorAppShell.xul < prev   
Encoding:
Extensible Markup Language  |  2002-05-14  |  6.4 KB  |  162 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Netscape Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/NPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    -  
  14.    - The Original Code is Mozilla Communicator client code, released
  15.    - March 31, 1998.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation. Portions created by Netscape are
  19.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s): 
  23.    -   Ryan Cassin (rcassin@supernova.org)
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?> 
  27. <?xml-stylesheet href="chrome://editor/skin/textEditor.css" type="text/css"?> 
  28.  
  29. <?xml-stylesheet href="chrome://editor/skin/editorPrimaryToolbar.css" type="text/css"?> 
  30. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  31. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  32. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  33. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  34. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  35. <?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
  36. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  37.  
  38. <!DOCTYPE window SYSTEM "chrome://editor/locale/editor.dtd"> 
  39.  
  40. <!-- NOTE: If we don't have "title" set, text editor doesn't work! -->
  41. <window id="main-window"
  42.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  43.         onload="TextEditorOnLoad()"
  44.         onunload="EditorShutdown()"
  45.         onclose="return EditorCanClose()"
  46.         onfocus="EditorOnFocus()"
  47.         contenttitlesetting="true"
  48.         title=""
  49.         titlemodifier="&textEditorWindow.titlemodifier;"
  50.         titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
  51.         windowtype="composer:text"
  52.         width="640" height="480"
  53.         screenX="10" screenY="10"
  54.         persist="screenX screenY width height sizemode"
  55.         >
  56.  
  57.   <script type="application/x-javascript" src="chrome://editor/content/editor.js"/>
  58.   <script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/>
  59.   <script type="application/x-javascript" src="chrome://editor/content/EditorCommandsDebug.js"/>
  60.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  61.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  62.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  63. <!--
  64. editor.xul has these - do we need them?
  65.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  66.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  67.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  68. -->
  69.  
  70.   <commands id="commands">
  71.     <commandset id="globalEditMenuItems"/>
  72.     <commandset id="selectEditMenuItems"/>
  73.     <commandset id="undoEditMenuItems"/>
  74.     <commandset id="clipboardEditMenuItems"/>
  75.     <commandset id="commonEditorMenuItems"/>
  76.     <commandset id="composerEditMenuItems"/>
  77.     <commandset id="composerSaveMenuItems"/>    
  78.     <commandset id="composerMenuItems"/>
  79.   </commands>
  80.  
  81.   <broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
  82.   <broadcaster id="canPrint"/>
  83.   
  84. <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs
  85.   <broadcaster id="dialog.start" ready="false"/>
  86.   <observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('text')"/>
  87.  -->
  88.    
  89.   <!-- broadcaster nodes are appended here from the overlays -->
  90.   <broadcasterset id="broadcasterset">
  91.     <broadcaster id="Editor:Throbber" busy="false"/>
  92.   </broadcasterset>
  93.  
  94.   <!-- keys are appended from the overlay -->
  95.   <keyset id="keyset"/>
  96.  
  97.   <toolbox id="EditorToolbox">
  98.     <menubar id="main-menubar" class="chromeclass-menubar">
  99.       <menu id="fileMenu"/>
  100.       <menu id="editMenu"/>
  101.  
  102.       <menu label="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
  103.         <!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
  104.         <menupopup id="menu_View_Popup">
  105.           <menu id="viewToolbar"/>
  106.           <menuseparator/>
  107.           <menu id = "composerCharsetMenu" />
  108.         </menupopup>
  109.       </menu>
  110.  
  111.       <menu id="insertMenuPlainText"/>
  112.  
  113.       <!-- tasks menu filled from tasksOverlay -->
  114.       <menu accesskey="t" id="tasksMenu"/>
  115.  
  116.       <!-- DEBUG only -->
  117.       <!-- <menu id="debugMenu" /> -->
  118.       <!-- end DEBUG only -->
  119.  
  120.       <!-- help menu filled from globalOverlay -->
  121.       <menu accesskey="h" id="menu_Help"/>
  122.  
  123.       <spacer flex="1"/>
  124.     </menubar>
  125.  
  126.      <!-- toolbar filled out from editorOverlay -->
  127.     <toolbar class="toolbar-primary" id="EditToolbar" persist="collapsed">
  128.       <toolbarbutton id="newButton"/>
  129.       <toolbarbutton id="openButton"/>
  130.       <toolbarbutton id="saveButton"/>
  131.       <spacer class="separator-small"/>
  132.       <toolbarbutton id="printButton"/>
  133.       <toolbarbutton id="spellingButton"/>
  134.       <spacer flex="1"/>
  135.     </toolbar>    
  136.   </toolbox>
  137.  
  138.   <hbox id="sidebar-parent" flex="1">
  139.     <!-- From sidebarOverlay.xul -->
  140.     <vbox id="sidebar-box" class="chromeclass-extrachrome" hidden="true"/>
  141.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  142.     <vbox id="appcontent" flex="1">
  143.  
  144.       <editor type="content-primary" id="content-frame" src="about:blank" flex="1"/>
  145.  
  146.       <statusbar id="status-bar">
  147.         <statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
  148.         <statusbarpanel class="statusbarpanel-progress">
  149.           <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0">
  150.               <observes element="Editor:Throbber" attribute="busy"/>
  151.           </progressmeter>
  152.         </statusbarpanel>
  153.         <statusbarpanel id="statusText" label="&statusText.label;" flex="1" crop="right"/>
  154.       </statusbar>
  155.  
  156.     </vbox> <!-- appcontent -->
  157.   </hbox><!-- sidebar-parent -->
  158.  
  159.   <hbox id="taskbar" class="toolbox-bottom"/>
  160.  
  161. </window>
  162.